<template>
<!-- 首页分类 -->
 	<view class="row row-cols-5 text-sm text-center my-12">
    <view v-for="(item, index) in navs" :key="index" @tap="event(item)"><image :src="item.src" mode="widthFix" style="height: 100%;"></image></view>
  </view>
</template>

<script>
export default {
  props: {
    navs: {
      type: Array,
      default: () => []
    }
  },
  methods: {
    event(item) {
      console.log('点击了图标')
    }
  }
}
</script>

<style scoped>
</style>